package cn.microservices.cloud.common.core.entity;//package cn.microservices.supplychain.commons.entity;
//
//import com.github.pagehelper.PageHelper;
//import com.github.pagehelper.PageInfo;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//
//import java.io.Serializable;
//import java.util.List;
//
//@Data
//@NoArgsConstructor
//public class IPageInfo<T> extends PageInfo implements Serializable {
//    private Integer pageCount ;
//    private Integer currentPage;
//    private Long totalElements;
//    private List<T> content;
//    public IPageInfo(List<T> list) {
//        PageInfo pageInfo = new PageInfo(list);
//        pageCount = pageInfo.getPageSize();
//        currentPage = pageInfo.getPageNum();
//        totalElements = pageInfo.getTotal();
//        content = pageInfo.getList();
//    }
//
//}
